package com.neusoft.student.dao;

import com.neusoft.student.model.Student;

import java.util.List;

/**
 * @Author: duan
 * @Date: Create in 10:06 2020/10/21
 */
public interface StudentDao {
    Student login(String account, String password);

    List<Student> queryList(String search);

    List<Student> queryList();

    List<Student> queryListByPage(int offset, int limit);

    int getCount();

    boolean insert(Student bean);

    boolean update(Student bean, Integer id);

    boolean delete(Integer id);

    Student getById(Integer id);
}
